package main

import (
	"fmt"
)

func main() {
	num := 10
	if num % 2 == 0 { //checks if number is even
		fmt.Println("the number is even")
	}  else {
		fmt.Println("the number is odd")
	}

	if num := 10; num % 2 == 0 { //checks if number is even
		fmt.Println(num,"is even")
	}  else {
		fmt.Println(num,"is odd")
	}


	//num := 10
	//if num % 2 == 0 { //checks if number is even
	//	fmt.Println("the number is even")
	//}
	//else {  不允许
	//fmt.Println("the number is odd")
	//}
}


